package com.cloud.shopping.seckill.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author John.zhang
 * @version Id: SeckillOrder, v 1.0 2021/1/8 10:57 ZhiYong Exp $
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "seckill_order")
public class SeckillOrder {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    private String seckillGoodsId;
    private String weChatTransactionId;
    private String username;
    private Integer money;
    private Integer status;
    private Date createTime;
    private Date payTime;
    /**
     * 抢购数量
     */
    private Integer num;
}
